package com.xudu.xianrendongculturaltravelbackend.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xudu.xianrendongculturaltravelbackend.model.dto.route.RouteAddRequest;
import com.xudu.xianrendongculturaltravelbackend.model.dto.route.RouteQueryRequest;
import com.xudu.xianrendongculturaltravelbackend.model.dto.route.RouteUpdateRequest;
import com.xudu.xianrendongculturaltravelbackend.model.dto.scenic.ScenicAddRequest;
import com.xudu.xianrendongculturaltravelbackend.model.entity.Route;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xudu.xianrendongculturaltravelbackend.model.vo.RouteVO;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

/**
* @author xudu
* @description 针对表【route】的数据库操作Service
* @createDate 2025-06-17 20:02:06
*/
public interface RouteService extends IService<Route> {

    Long addRoute(RouteAddRequest routeAddRequest, HttpServletRequest request);

    List<RouteVO> getRouteVOList(RouteQueryRequest routeQueryRequest);

    Boolean updateRoute(RouteUpdateRequest routeUpdateRequest);

    RouteVO objToVo(Route route);

    Page<RouteVO> getPageListRouteVo(RouteQueryRequest routeQueryRequest);

    QueryWrapper<Route> getQueryWrapper(RouteQueryRequest routeQueryRequest);
}
